	var menuskin = "popmenu_skin1";
	var display_url = 0;
	var sbdpop = document.all("sbdpopmenu");

	function popmenu_showmenuie5() {
		if (sbdpop == null) return false;

		if (event.srcElement.tagName == "INPUT") return true;

		var rightedge = document.body.clientWidth-event.clientX;
		var bottomedge = document.body.clientHeight-event.clientY;

		if (rightedge <sbdpopmenu.offsetWidth){
			sbdpopmenu.style.left = document.body.scrollLeft + event.clientX - sbdpopmenu.offsetWidth;
		} else {
			sbdpopmenu.style.left = document.body.scrollLeft + event.clientX;
		}
				
		if (bottomedge <sbdpopmenu.offsetHeight) {
			sbdpopmenu.style.top = document.body.scrollTop + event.clientY - sbdpopmenu.offsetHeight;
		} else {
			sbdpopmenu.style.top = document.body.scrollTop + event.clientY;
		}
		sbdpopmenu.style.visibility = "visible";
		return false;
	}

	function popmenu_hidemenuie5() {
		if (sbdpop == null) return true;

		var curTextRange = document.selection.createRange();
		if (curTextRange.text != "") {
			document.execCommand("Copy");
		}

		sbdpopmenu.style.visibility = "hidden";
	}

	function popmenu_highlightie5() {
		if (event.srcElement.className == "popmenu_menuitems") {
			event.srcElement.style.backgroundColor = "highlight";
			event.srcElement.style.color = "white";

			if (display_url)
				window.status = event.srcElement.url;
		}
	}

	function popmenu_lowlightie5() {
		if (event.srcElement.className == "popmenu_menuitems") {
			event.srcElement.style.backgroundColor = "";
			event.srcElement.style.color = "black";
			window.status = "";
		}
	}

	function popmenu_jumptoie5() {
		if (event.srcElement.className == "popmenu_menuitems") {
			if (event.srcElement.getAttribute("target") != null) {
				window.open(event.srcElement.url, event.srcElement.getAttribute("target"));
			} else {
				window.location = event.srcElement.url;
			}
		}
	}
	
	if (document.all && window.print) {
		if (sbdpop != null) {
			sbdpopmenu.className = menuskin;
			document.oncontextmenu = popmenu_showmenuie5;
			document.body.onclick = popmenu_hidemenuie5;
		} else {
			document.oncontextmenu = popmenu_showmenuie5;
		}
	}